import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import '@/styles/index.scss'
import 'virtual:svg-icons-register'
import globalComponent from '@/components'
import router from '@/router'
import pinia from '@/stores'
import App from '@/App.vue'

const app = createApp(App)

app.use(ElementPlus, { locale: zhCn })
// 自定义全局组件插件
app.use(globalComponent)
app.use(router)
app.use(pinia)
app.mount('#app')

console.log('===> 当前系统环境:', import.meta.env)
